#include "Colleague.h"
#include "Mediator.h"

#include <iostream>
using namespace std;

Colleague::Colleague(Mediator* mediator)
{
    std::cout << "Colleague::Colleague(Mediator* mediator)" << std::endl;
    _mediator = mediator;
    _mediator->add(this);
}

Mediator* Colleague::GetMediator()
{
    cout << "Mediator* Colleague::GetMediator()" << endl;
    return _mediator;
}

void Colleague::SetMediator(Mediator* const mediator)
{
    cout << "Colleague::SetMediator(Mediator* const mediator)" << endl;
    _mediator = mediator;
}